home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / memory & system tools / vmm / contrib / vmminformer1_1 / prefs / vmminformer.crazy next >
Text File  |  1996-04-07  |  3KB  |  81 lines

  1. // VMMInformer.prefs DON'T EDIT OR MOVE THIS LINE
  2. BEGIN TASK/WINDOW/DEFAULT
  3.   VERSION  = 1              // !!! DO NOT EDIT THIS LINE !!!
  4.   REVISION = 1              // !!! DO NOT EDIT THIS LINE !!!
  5.  
  6.   PRIORITY = 1
  7.  
  8.   LEFT  = 0
  9.   TOP   = 0
  10.   WIDTH = 460
  11.  
  12.   ZOOMED = FALSE
  13.   ZOOMED_LEFT = 0
  14.   ZOOMED_TOP  = 0
  15.  
  16.   BACKFILLCOLOR = 0
  17.   TEXTCOLOR     = 1
  18.   PANELCOLOR    = 3
  19.  
  20.   SYNCHRONIZE = TRUE        // !!! DON'T EDIT THIS LINE !!!
  21.   SECONDS = 0
  22.   MICROS  = 200000
  23.  
  24.   AUTOSCALE = TRUE
  25.   SHIFT = 1
  26.   COLOR = 1
  27.   EXCEED_COLOR = 7
  28. END
  29.  
  30. // RPN for calculations
  31. BEGIN VARIABLES
  32.   DEFINE VMUsed  = VMSize VMFree -
  33.   DEFINE VMFreeK = VMFree 1024 /
  34.   DEFINE PUBLIC_FAST_FreeK = PUBLIC_FAST_Free 1024 /
  35.   DEFINE CHIP_FreeK = CHIP_Free 1024 /
  36.  
  37.   DEFINE Hours   = CurrentSeconds 86400 % 3600 /
  38.   DEFINE Minutes = CurrentSeconds 86400 % 3600 % 60 /
  39.   DEFINE Seconds = CurrentSeconds 60 %
  40.  
  41.   ARRAYPagesWritten = PagesWritten
  42.   ARRAYPagesRead    = PagesRead
  43.   ARRAYFaults       = Faults
  44.  
  45.   DEFINE Pages_written_per_update = ARRAYPagesWritten(0) ARRAYPagesWritten(-1) -
  46.   DEFINE Pages_read_per_update = ARRAYPagesRead(0) ARRAYPagesRead(-1) -
  47.   DEFINE Pagefaults_per_update = ARRAYFaults(0) ARRAYFaults(-1) -
  48. END
  49.  
  50. BEGIN VARIABLES
  51.   TITLE = "Crazy VMMInformer V%1.1ld.%1.1ld, Update every %6ld micros", VERSION, REVISION, MICROS
  52.   ZOOMTITLE = "VM: %5ld K, Chip: %4ld K, Fast: %5ld K  %2.2ld:%2.2ld:%2.2ld", VMFreeK, CHIP_FreeK, PUBLIC_FAST_FreeK, Hours, Minutes, Seconds
  53.  
  54.   TEXT = "Virtual memory size:", VMSize
  55.   TEXT = "Virtual memory free:", VMFree
  56.   GRAPHIC = VMFree, 30,,, 5000000, TRUE
  57.   TEXT = "Virtual memory used:", VMUsed
  58.   TEXT = "Public Fast Mem free:", PUBLIC_FAST_Free
  59.   GRAPHIC = PUBLIC_FAST_Free, 30,,, 1000000, TRUE
  60.   TEXT = "       Chip Mem free:", CHIP_Free
  61.   GRAPHIC = CHIP_Free, 30,,, 1000000, TRUE
  62.   TEXT = "Number of pagefaults:", Faults
  63.   TEXT = "Number of pages read:", PagesRead
  64.   TEXT = "Number of pages written:", PagesWritten
  65.   TEXT = "Number of page frames:", NumFrames
  66.   TEXT = "Pages used on device:", PagesUsed
  67.   TEXT = "PageSize:", PageSize
  68.   TEXT = "TrapStructs free:", TrapStructsFree
  69.   BAR = 1
  70.   TEXT = "Current seconds:", CurrentSeconds
  71.   TEXT = "Current micros:", CurrentMicros
  72.   GRAPHIC = CurrentMicros, 20,,, 100000, TRUE
  73.   TEXT = "Pagesfaults per update:", Pagefaults_per_update
  74.   TEXT = "Pages read  per update:", Pages_read_per_update
  75.   TEXT = "Pages written per update:", Pages_written_per_update
  76.   GRAPHIC = Pagefaults_per_update, 30, 2
  77.   GRAPHIC = Pages_read_per_update, 40, 2
  78.   GRAPHIC = Pages_written_per_update, 50, 2
  79.  
  80. END
  81.